package com.sale.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sale.system.api.domain.dto.SysConverterManagementDto;
import com.sale.system.domain.ConverterManagement;
import com.sale.system.domain.dto.ConverterManagementDto;
import com.sale.system.domain.vo.ConverterManagementVo;
import com.sale.system.export.ConverterManagementExport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ConverterManagementMapper extends BaseMapper<ConverterManagement> {

    /**
     * 加工商列表
     */
    Page<ConverterManagementDto> getConverterList(@Param("converterManagementVo") ConverterManagementVo converterManagementVo, @Param("page") Page<ConverterManagementDto> page);

    /**
     * 获取加工商编号列表
     */
    List<ConverterManagementDto> getConverterNumMax();


    /**
     *加工商信息导出
     */
    List<ConverterManagementExport> getExportList(@Param("converterManagementVo") ConverterManagementVo converterManagementVo);

    /**
     * 根据多个id获取数据
     */
    List<ConverterManagementExport> getDataByIdStr(@Param("idList") List<String> idList);

    /**
     * 根据id获取详情数据（dubbo）
     */
    SysConverterManagementDto getViewById(Long id);

    /**
     * 根据编码获取详情数据（dubbo）
     */
    SysConverterManagementDto getViewByCode(String code);
}
